package vip.xiaonuo.biz.modular.rewardslog.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import vip.xiaonuo.biz.modular.rewardslog.entity.RewardsLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * 奖励记录(RewardsLog)表数据库访问层
 *
 * @author h
 * @since 2025-11-21 14:24:39
 */
@Mapper
public interface RewardsLogMapper extends BaseMapper<RewardsLog>{
    /**
     * 查询根据奖励code查询详情
     * @param rewardsCode
     * @return
     */
    @Select("select * from tb_rewards_log where rewards_code = #{rewardsCode}")
    RewardsLog queryDetailByCode(@Param("rewardsCode") String rewardsCode);
}
